package com.atguigu.java15;

/**
 * 只希望dog和cat能继承animal
 */
public sealed class Animal permits Dog, Cat {
    public void eat() {

    }
}
